package com.ridaizu.model.form;

import java.util.Date;
import java.util.List;

import javax.faces.bean.SessionScoped;

import com.ridaizu.model.Transit;
import com.ridaizu.model.Model;

@javax.faces.bean.ManagedBean(name = "transitForm")
@SessionScoped
public class TransitForm extends Model {

	private static final long serialVersionUID = 1L;

	private String id;

	private Date transitDate;

	private String goodsTotalCount;

	private String goodsTotalPrice;

	private String freightTotal;

	private boolean arriveFlg;

	private Date arriveDate;

	private String rgtOpt;

	private Date rgtDate;

	private String updOpt;

	private Date updDate;

	private Transit selectedTransit;

	private List<Transit> selectedTransitList;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getTransitDate() {
		return transitDate;
	}

	public void setTransitDate(Date transitDate) {
		this.transitDate = transitDate;
	}

	public String getGoodsTotalCount() {
		return goodsTotalCount;
	}

	public void setGoodsTotalCount(String goodsTotalCount) {
		this.goodsTotalCount = goodsTotalCount;
	}

	public String getGoodsTotalPrice() {
		return goodsTotalPrice;
	}

	public void setGoodsTotalPrice(String goodsTotalPrice) {
		this.goodsTotalPrice = goodsTotalPrice;
	}

	public String getFreightTotal() {
		return freightTotal;
	}

	public void setFreightTotal(String freightTotal) {
		this.freightTotal = freightTotal;
	}

	public boolean isArriveFlg() {
		return arriveFlg;
	}

	public void setArriveFlg(boolean arriveFlg) {
		this.arriveFlg = arriveFlg;
	}

	public Date getArriveDate() {
		return arriveDate;
	}

	public void setArriveDate(Date arriveDate) {
		this.arriveDate = arriveDate;
	}

	public String getRgtOpt() {
		return rgtOpt;
	}

	public void setRgtOpt(String rgtOpt) {
		this.rgtOpt = rgtOpt;
	}

	public Date getRgtDate() {
		return rgtDate;
	}

	public void setRgtDate(Date rgtDate) {
		this.rgtDate = rgtDate;
	}

	public String getUpdOpt() {
		return updOpt;
	}

	public void setUpdOpt(String updOpt) {
		this.updOpt = updOpt;
	}

	public Date getUpdDate() {
		return updDate;
	}

	public void setUpdDate(Date updDate) {
		this.updDate = updDate;
	}

	public Transit getSelectedTransit() {
		return selectedTransit;
	}

	public void setSelectedTransit(Transit selectedTransit) {
		this.selectedTransit = selectedTransit;
	}

	public List<Transit> getSelectedTransitList() {
		return selectedTransitList;
	}

	public void setSelectedTransitList(List<Transit> selectedTransitList) {
		this.selectedTransitList = selectedTransitList;
	}

	public void clearAll() {
		this.id = null;
		this.transitDate = null;
		this.goodsTotalCount = null;
		this.goodsTotalPrice = null;
		this.freightTotal = null;
		this.arriveFlg = false;
		this.arriveDate = null;
		this.rgtOpt = null;
		this.rgtDate = null;
		this.updOpt = null;
		this.updDate = null;
		this.selectedTransit = null;
		this.selectedTransitList = null;
	}

}
